cmake_minimum_required(VERSION 3.5)
project(untitled)

set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(Qt5Widgets REQUIRED)
find_package(Qt5SerialPort REQUIRED)
find_package(OpenCV REQUIRED)

set(SOURCES
    main.cpp
    widget.cpp
    worker.cpp
)

add_executable(${CMAKE_PROJECT_NAME}_exe ${SOURCES})
target_link_libraries(${CMAKE_PROJECT_NAME}_exe PRIVATE Qt5::Widgets Qt5::SerialPort ${OpenCV_LIBS})
